<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/12/14
 * Time: 6:05 PM
 */

namespace exception;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

class ModelBodyNotFoundException extends IException
{
  /**
   * Message part
   */
  const MESSAGE = "Model of the action, named __path__ not found. You should define action model or action forward.'";

  /**
   * @param string $actionName
   */
  public function __construct($actionName)
  {
    parent::__construct(IException::replaceMessage("__path__", $actionName, self::MESSAGE));
  }


} 